<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'consumDetailList.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
  <a href="http://www.baidu.com"><input type="button" value="记账" ></a>
  <table id="dataShow">
  	<tr>
  		<th>时间</th>
  		<th>类型</th>
  		<th>消费类型</th>
  		<th>支付方式</th>
  		<th>金额</th>
  		<th>消费者</th>
  		<th>备注</th>
  		<th>入账</th>
  	</tr>

  	<c:forEach items="${objs }" var="obj">
  	<tr>
  		<td><fmt:formatDate value="${obj.addTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  		<td>${obj.capitalTypeV }</td>
  		<td>${obj.consumptionTypeName }</td>
  		<td>${obj.paymentName }</td>
  		<td>${obj.consumptionAmount }</td>
  		<td>${obj.userName }</td>
  		<td>${obj.detail }</td>
  		<td>${obj.enterName }</td>
  	</tr>
  	</c:forEach>
  </table>
  </body>
</html>
